package cn.jaye.fabric.infrastructure.mybatis.impl;

import cn.jaye.fabric.common.model.impl.BaseRepositoryImpl;
import cn.jaye.fabric.domain.repository.PeerRepository;
import cn.jaye.fabric.domain.model.MPeer;
import cn.jaye.fabric.infrastructure.mybatis.impl.mapper.PeerMapper;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Jaye
 * @create 2018-05-03 15:00
 */
@Repository
public class PeerRepositoryImpl extends BaseRepositoryImpl<PeerMapper, MPeer> implements PeerRepository {

    @Autowired
    private PeerMapper peerMapper;

    @Override
    public List<MPeer> selectPeerByChannel(String channelName) {
        return peerMapper.selectPeerByChannel(channelName);
    }
}
